package com.aigc.tools;


import com.aigc.domin.PhonePlans;
import com.aigc.domin.dto.PhonePlanDto;
import com.aigc.mapper.PhonePlansMapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PlansTool {
    @Autowired
    private PhonePlansMapper phonePlansMapper;
    @Tool(description = "查询电话套餐,从选择2个合适的套餐推荐用户")
    public List<PhonePlans> getPlans( ){
        return phonePlansMapper.selectList(new QueryWrapper<PhonePlans>());
    }
}
